package day02;

import java.awt.*;
import java.util.Scanner;

public class VarDemo {
    public static void main(String[] args) {
        //1)变量的声明
        int a;
        //2)变量的赋值
        a = 100;
        a = 200;
        System.out.println(a);

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数字");
        String s = sc.nextLine();
        System.out.println(s + 100);

        int b, c, d;
        b = a + 10;
        c = b++;
        d = --c;
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);//输出变量d的值209
        System.out.println("d");//输出变量d
    }
}
